aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/StringTableBuilder.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-22 15:04:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-22 15:04:10 +0000
commit9bccaa158a8424b7f74e75d7cb1878f2a4b6826a (patch)
tree147810be8d24191ee0d3df68c339cfb63700fb3f /llvm/lib/MC/StringTableBuilder.cpp
parent8f9e44406165c1f57e0b28ba159cace972220921 (diff)
downloadllvm-9bccaa158a8424b7f74e75d7cb1878f2a4b6826a.zip
llvm-9bccaa158a8424b7f74e75d7cb1878f2a4b6826a.tar.gz
llvm-9bccaa158a8424b7f74e75d7cb1878f2a4b6826a.tar.bz2
[Tooling] Add a utility function to replace one nested name with another.
One problem in clang-tidy and other clang tools face is that there is no way to lookup an arbitrary name in the AST, that's buried deep inside Sema and might not even be what the user wants as the new name may be freshly inserted and not available in the AST. A common use case for lookups is replacing one nested name with another while minimizing namespace qualifications, so replacing 'ns::foo' with 'ns::bar' will use just 'bar' if we happen to be inside the namespace 'ns'. This adds a little helper utility for exactly that use case. Differential Revision: http://reviews.llvm.org/D13931 llvm-svn: 251022
Diffstat (limited to 'llvm/lib/MC/StringTableBuilder.cpp')
0 files changed, 0 insertions, 0 deletions