aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-12-10 12:31:29 +0100
committerRaphael Isemann <teemperor@gmail.com>2020-12-10 13:37:40 +0100
commit208e3f5d9b6c172f65dbb9cdbc9354c81c6d8911 (patch)
tree1fb6e9152bb9e9f8e83eb74354021d7e493c7d5a /clang/lib/Frontend/CompilerInvocation.cpp
parentee02e20c0817745c47ea9be8e26e9a49afc9a7fd (diff)
downloadllvm-208e3f5d9b6c172f65dbb9cdbc9354c81c6d8911.zip
llvm-208e3f5d9b6c172f65dbb9cdbc9354c81c6d8911.tar.gz
llvm-208e3f5d9b6c172f65dbb9cdbc9354c81c6d8911.tar.bz2
[lldb] Fix that symbols.clang-modules-cache-path is never initialized
LLDB is supposed to ask the Clang Driver what the default module cache path is and then use that value as the default for the `symbols.clang-modules-cache-path` setting. However, we use the property type `String` to change `symbols.clang-modules-cache-path` even though the type of that setting is `FileSpec`, so the setter will simply do nothing and return `false`. We also don't check the return value of the setter, so this whole code ends up not doing anything at all. This changes the setter to use the correct property type and adds an assert that we actually successfully set the default path. Also adds a test that checks that the default value for this setting is never unset/empty path as this would effectively disable the import-std-module feature from working by default. Reviewed By: JDevlieghere, shafik Differential Revision: https://reviews.llvm.org/D92772
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions