Author: Haojian Wu Date: 2022-03-02T10:19:17+01:00 New Revision: 05d7e9f68ef005c43576278fe5d7ac03869974f3
URL: https://github.com/llvm/llvm-project/commit/05d7e9f68ef005c43576278fe5d7ac03869974f3 DIFF: https://github.com/llvm/llvm-project/commit/05d7e9f68ef005c43576278fe5d7ac03869974f3.diff LOG: [pseudo] fix some comment nits, NFC. Added: Modified: clang/lib/Tooling/Syntax/Pseudo/LRTableBuild.cpp Removed: ################################################################################ diff --git a/clang/lib/Tooling/Syntax/Pseudo/LRTableBuild.cpp b/clang/lib/Tooling/Syntax/Pseudo/LRTableBuild.cpp index f07d8b106806..aaf9cad31961 100644 --- a/clang/lib/Tooling/Syntax/Pseudo/LRTableBuild.cpp +++ b/clang/lib/Tooling/Syntax/Pseudo/LRTableBuild.cpp @@ -73,7 +73,7 @@ class LRTable::Builder { Table.Actions.push_back(E.Act); Table.States.push_back(E.State); } - // Initialize the terminal and nonterminal idx, all ranges are empty by + // Initialize the terminal and nonterminal offset, all ranges are empty by // default. Table.TerminalOffset = std::vector<uint32_t>(GT.Terminals.size() + 1, 0); Table.NontermOffset = std::vector<uint32_t>(GT.Nonterminals.size() + 1, 0); @@ -127,7 +127,7 @@ LRTable LRTable::buildSLR(const Grammar &G) { } if (!I.hasNext()) { // If we've reached the end of a rule A := ..., then we can reduce if - // the next token is in the follow set of A". + // the next token is in the follow set of A. for (SymbolID Follow : FollowSets[G.lookupRule(I.rule()).Target]) { assert(isToken(Follow)); Build.insert({SID, Follow, Action::reduce(I.rule())}); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits