aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAdam Czachorowski <adamcz@google.com>2021-01-07 21:24:40 +0100
committerAdam Czachorowski <adamcz@google.com>2021-01-08 17:00:39 +0100
commitd4af86581e80ef0f7a6f4a4fff1c97260a726e71 (patch)
tree2a218b5302c02137fd4186cd62066bd36368d14a /clang/lib/Frontend/CompilerInvocation.cpp
parent740950cf1cda4e5ccecf3781b7b64c9a9a72b168 (diff)
downloadllvm-d4af86581e80ef0f7a6f4a4fff1c97260a726e71.zip
llvm-d4af86581e80ef0f7a6f4a4fff1c97260a726e71.tar.gz
llvm-d4af86581e80ef0f7a6f4a4fff1c97260a726e71.tar.bz2
[clangd] Fix type printing in the presence of qualifiers
When printing QualType with qualifiers like "const", or pointing to an elaborated type, we would print garbage like: std::const std::vector<int>& with the initial std:: being calculated correctly, but inserted in the wrong place and the second std:: not removed (due to elaborated type). This affected, among others, ExtractFunction and ExpandAuto tweaks. This change introduces a new callback to PrintingPolicy, which allows us to influence the printing of namespace qualifiers. In the future, the same callback can be used to improve handling of "using namespace" directives as well. Fixes: https://github.com/clangd/clangd/issues/640 (ExtractFunction) https://github.com/clangd/clangd/issues/264 (ExpandAuto) First point of https://github.com/clangd/clangd/issues/524 Differential Revision: https://reviews.llvm.org/D94259
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions