Skip to content

Commit 0c21705

Browse files
authored
[analysis][NFC] clean unittest log (#123758)
1. clean llvm::errs ouput 2. add -Wno-everything option to suppress clang warning during test
1 parent c3d8205 commit 0c21705

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/unittests/Analysis/CFGBuildResult.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class CFGCallback : public ast_matchers::MatchFinder::MatchCallback {
6565
template <typename FuncMatcherT = ast_matchers::internal::TrueMatcher>
6666
BuildResult 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;

clang/unittests/Analysis/CFGTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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>());

0 commit comments

Comments
 (0)