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 {
65
65
template <typename FuncMatcherT = ast_matchers::internal::TrueMatcher>
66
66
BuildResult BuildCFG (const char *Code, CFG::BuildOptions Options = {},
67
67
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 " };
70
70
std::unique_ptr<ASTUnit> AST = tooling::buildASTFromCodeWithArgs (Code, Args);
71
71
if (!AST)
72
72
return BuildResult::ToolFailed;
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ TEST(CFG, ElementRefIterator) {
195
195
// Reverse, non-const version
196
196
Index = MainBlockSize;
197
197
for (CFGBlock::CFGElementRef ElementRef : MainBlock->rrefs ()) {
198
- llvm::errs () << Index << ' \n ' ;
199
198
EXPECT_EQ (ElementRef.getParent (), MainBlock);
200
199
EXPECT_EQ (ElementRef.getIndexInBlock (), Index);
201
200
EXPECT_TRUE (ElementRef->getAs <CFGStmt>());
You can’t perform that action at this time.
0 commit comments