Skip to content

Commit 96065cf

Browse files
committed
[Syntax] Silence "unused function" warning in no-assert builds. NFC
A helper `isImpicitExpr` is only used inside assert.
1 parent c44a9b5 commit 96065cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Tooling/Syntax/BuildTree.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
#include "llvm/ADT/SmallVector.h"
2222
#include "llvm/Support/Allocator.h"
2323
#include "llvm/Support/Casting.h"
24+
#include "llvm/Support/Compiler.h"
2425
#include "llvm/Support/FormatVariadic.h"
2526
#include "llvm/Support/raw_ostream.h"
2627
#include <map>
2728

2829
using namespace clang;
2930

31+
LLVM_ATTRIBUTE_UNUSED
3032
static bool isImplicitExpr(clang::Expr *E) { return E->IgnoreImplicit() != E; }
3133

3234
/// A helper class for constructing the syntax tree while traversing a clang

0 commit comments

Comments
 (0)