aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorAdam Czachorowski <adamcz@google.com>2020-11-23 14:48:57 +0100
committerAdam Czachorowski <adamcz@google.com>2020-11-24 22:57:02 +0100
commita200501bca4dc7f3292d824f249fa21a479e9873 (patch)
tree4ae576cc6ba2c7988fcdb04f77fc108dfab6c6f5 /llvm/lib/CodeGen/CommandFlags.cpp
parentf8317bb256be2cd8ed81ebc567f0fa626b645f63 (diff)
downloadllvm-a200501bca4dc7f3292d824f249fa21a479e9873.zip
llvm-a200501bca4dc7f3292d824f249fa21a479e9873.tar.gz
llvm-a200501bca4dc7f3292d824f249fa21a479e9873.tar.bz2
[clangd] Addusing tweak: find insertion point after definition
When type/function is defined in the middle of the file, previuosly we would sometimes insert a "using" line before that definition, leading to a compilation error. With this fix, we pick a point after such definition in translation unit. This is not a perfect solution. For example, it still doesn't handle "using namespace" directives. It is, however, a significant improvement. Differential Revision: https://reviews.llvm.org/D92053
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions