diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-12-05 22:38:57 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-12-05 22:38:57 +0000 |
commit | 76b005398dc73dc504334d8a27989392e817d6b7 (patch) | |
tree | f99fbb88466a1efb4482a71b7b46d29eda344222 /clang/lib/AST/ASTDumper.cpp | |
parent | 91f0edc55f9ee8e161ce67d75f2dd77fc1b0dfbd (diff) | |
download | bcm5719-llvm-76b005398dc73dc504334d8a27989392e817d6b7.tar.gz bcm5719-llvm-76b005398dc73dc504334d8a27989392e817d6b7.zip |
ASTDumper: print whether a function is constexpr
llvm-svn: 223538
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index ce32f5090a7..ebf5e651ef9 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -987,6 +987,10 @@ void ASTDumper::dumpDecl(const Decl *D) { OS << " referenced"; if (D->isInvalidDecl()) OS << " invalid"; + if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) + if (FD->isConstexpr()) + OS << " constexpr"; + ConstDeclVisitor<ASTDumper>::Visit(D); |