]> granicus.if.org Git - clang/commit
[AST] Extract Decl::printNestedNameSpecifier helper from Decl::printQualifiedName
authorIlya Biryukov <ibiryukov@google.com>
Wed, 25 Sep 2019 13:09:10 +0000 (13:09 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 25 Sep 2019 13:09:10 +0000 (13:09 +0000)
commit73bc9c1440b57a5bfc1f3879ffd7002fdf5877ee
treeb91c866d3dcaeb8051ec48775da95637f07af7e6
parentc80478b976273e88f936ed14303f2e0a00792bae
[AST] Extract Decl::printNestedNameSpecifier helper from Decl::printQualifiedName

Summary:
To be used in clangd, e.g. in D66647.
Currently the alternative to this function is doing string manipulation on results of `printQualifiedName`, which is
hard-to-impossible to get right in presence of template arguments.

Reviewers: kadircet, aaron.ballman

Reviewed By: kadircet, aaron.ballman

Subscribers: aaron.ballman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67825

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372863 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
unittests/AST/NamedDeclPrinterTest.cpp