diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-12-04 15:09:35 -0800 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-12-04 16:55:25 -0800 |
commit | c0ee0224c4cf52bc6ba74dec88b30b850deca523 (patch) | |
tree | faf44c4d276d1a59cb10d3382f0eadb56522ae32 /clang-tools-extra/clangd/SemanticSelection.cpp | |
parent | acda2bc0adf62d9e54bf6d284f91e6cfa5b3cc6e (diff) | |
download | bcm5719-llvm-c0ee0224c4cf52bc6ba74dec88b30b850deca523.tar.gz bcm5719-llvm-c0ee0224c4cf52bc6ba74dec88b30b850deca523.zip |
[clangd] NFC, add getLangOpts helper to ParsedAST
The addition of the helper is split out from https://reviews.llvm.org/D69543
as suggested by Kadir. I also updated the existing uses to use the new API.
Diffstat (limited to 'clang-tools-extra/clangd/SemanticSelection.cpp')
-rw-r--r-- | clang-tools-extra/clangd/SemanticSelection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/SemanticSelection.cpp b/clang-tools-extra/clangd/SemanticSelection.cpp index 91a5582ac29..cbbf31f1b05 100644 --- a/clang-tools-extra/clangd/SemanticSelection.cpp +++ b/clang-tools-extra/clangd/SemanticSelection.cpp @@ -30,7 +30,7 @@ llvm::Expected<std::vector<Range>> getSemanticRanges(ParsedAST &AST, Position Pos) { std::vector<Range> Result; const auto &SM = AST.getSourceManager(); - const auto &LangOpts = AST.getASTContext().getLangOpts(); + const auto &LangOpts = AST.getLangOpts(); auto FID = SM.getMainFileID(); auto Offset = positionToOffset(SM.getBufferData(FID), Pos); |