diff options
author | Eric Liu <ioeric@google.com> | 2018-02-02 10:31:42 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-02-02 10:31:42 +0000 |
commit | cf1773826fd815bf1c8ddc964f4c9f1b5b47b978 (patch) | |
tree | 4bb743209d4513a3d6f2d7a5519d06c5136c90f4 /llvm/lib/Transforms | |
parent | 436046630dd197a3ef4e0c6c2adb44e6f4b1c616 (diff) | |
download | bcm5719-llvm-cf1773826fd815bf1c8ddc964f4c9f1b5b47b978.tar.gz bcm5719-llvm-cf1773826fd815bf1c8ddc964f4c9f1b5b47b978.zip |
[clangd] Skip inline namespace when collecting scopes for index symbols.
Summary:
Some STL symbols are defined in inline namespaces. For example,
```
namespace std {
inline namespace __cxx11 {
typedef ... string;
}
}
```
Currently, this will be `std::__cxx11::string`; however, `std::string` is desired.
Inline namespaces are treated as transparent scopes. This
reflects the way they're most commonly used for lookup. Ideally we'd
include them, but at query time it's hard to find all the inline
namespaces to query: the preamble doesn't have a dedicated list.
Reviewers: sammccall, hokein
Reviewed By: sammccall
Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits
Differential Revision: https://reviews.llvm.org/D42796
llvm-svn: 324065
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions