diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-25 00:15:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-25 00:15:56 +0000 |
commit | 62f19e700d3126415bb443162501eefe22cf1811 (patch) | |
tree | f099beb58ddd384abd71e64128ae992e87362263 /clang/lib/AST/ASTDumper.cpp | |
parent | b8da3a2bb2b840db6ab7c473190ee6d65dcf3a1e (diff) | |
download | bcm5719-llvm-62f19e700d3126415bb443162501eefe22cf1811.tar.gz bcm5719-llvm-62f19e700d3126415bb443162501eefe22cf1811.zip |
Implement C++17 P0386R2, inline variables. (The 'inline' specifier gives a
variable weak discardable linkage and partially-ordered initialization, and is
implied for constexpr static data members.)
llvm-svn: 273754
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 fc206b05c14..60420c71fc5 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -1196,6 +1196,10 @@ void ASTDumper::VisitVarDecl(const VarDecl *D) { OS << " __module_private__"; if (D->isNRVOVariable()) OS << " nrvo"; + if (D->isInline()) + OS << " inline"; + if (D->isConstexpr()) + OS << " constexpr"; if (D->hasInit()) { switch (D->getInitStyle()) { case VarDecl::CInit: OS << " cinit"; break; |