[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343665: Allow comments with '#' in dynamic AST Matchers (authored by steveire, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52751?vs=167987

[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. Aside from some naming and style convention nits, LGTM. Comment at: unittests/ASTMatchers/Dynamic/ParserTest.cpp:151 Sema.parse(" Foo ( Bar ( 17), Baz( \n \"

[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-02 Thread Stephen Kelly via Phabricator via cfe-commits
steveire marked an inline comment as done. steveire added inline comments. Comment at: unittests/ASTMatchers/Dynamic/ParserTest.cpp:188-190 + for (size_t i = 0, e = Sema.Errors.size(); i != e; ++i) { +EXPECT_EQ("", Sema.Errors[i]); + } aaron.ballman wrote:

[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-02 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 167987. steveire added a comment. use cxx_range_for Repository: rC Clang https://reviews.llvm.org/D52751 Files: lib/ASTMatchers/Dynamic/Parser.cpp unittests/ASTMatchers/Dynamic/ParserTest.cpp Index: unittests/ASTMatchers/Dynamic/ParserTest.cpp ===

[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: unittests/ASTMatchers/Dynamic/ParserTest.cpp:188-190 + for (size_t i = 0, e = Sema.Errors.size(); i != e; ++i) { +EXPECT_EQ("", Sema.Errors[i]); + } Why are empty errors created? I would have expected this to

[PATCH] D52751: Allow comments with '#' in dynamic AST Matchers

2018-10-01 Thread Stephen Kelly via Phabricator via cfe-commits
steveire created this revision. steveire added a reviewer: aaron.ballman. Herald added a subscriber: cfe-commits. This is necessary for clang-query to be able to handle comments. Repository: rC Clang https://reviews.llvm.org/D52751 Files: lib/ASTMatchers/Dynamic/Parser.cpp unittests/ASTM