File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ class CFGCallback : public ast_matchers::MatchFinder::MatchCallback {
6565template <typename FuncMatcherT = ast_matchers::internal::TrueMatcher>
6666BuildResult BuildCFG (const char *Code, CFG::BuildOptions Options = {},
6767 FuncMatcherT FuncMatcher = ast_matchers::anything()) {
68- std::vector<std::string> Args = {" -std=c++11 " ,
69- " -fno-delayed-template-parsing" };
68+ const std::vector<std::string> Args = {
69+ " -std=c++11 " , " -fno-delayed-template-parsing" , " -Wno-everything " };
7070 std::unique_ptr<ASTUnit> AST = tooling::buildASTFromCodeWithArgs (Code, Args);
7171 if (!AST)
7272 return BuildResult::ToolFailed;
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ TEST(CFG, ElementRefIterator) {
195195 // Reverse, non-const version
196196 Index = MainBlockSize;
197197 for (CFGBlock::CFGElementRef ElementRef : MainBlock->rrefs ()) {
198- llvm::errs () << Index << ' \n ' ;
199198 EXPECT_EQ (ElementRef.getParent (), MainBlock);
200199 EXPECT_EQ (ElementRef.getIndexInBlock (), Index);
201200 EXPECT_TRUE (ElementRef->getAs <CFGStmt>());
You can’t perform that action at this time.
0 commit comments