summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorBen Hamilton <benhamilton@google.com>2018-04-27 18:51:12 +0000
committerBen Hamilton <benhamilton@google.com>2018-04-27 18:51:12 +0000
commit345f8739d80eda6d45722e42056d6b5a42a6dc87 (patch)
tree0020620864678a9de04d65233431d5fb3d4efe5f /clang/unittests/Basic/FileManagerTest.cpp
parent47aece134448f60b4091a882da604fd7500ae9bd (diff)
downloadbcm5719-llvm-345f8739d80eda6d45722e42056d6b5a42a6dc87.tar.gz
bcm5719-llvm-345f8739d80eda6d45722e42056d6b5a42a6dc87.zip
[clang-format/ObjC] Use getIdentifierInfo() instead of tok::identifier
Summary: Previously, we checked tokens for `tok::identifier` to see if they were identifiers inside an Objective-C selector. However, this missed C++ keywords like `new` and `delete`. To fix this, this diff uses `getIdentifierInfo()` to find identifiers or keywords inside Objective-C selectors. Test Plan: New tests added. Ran tests with: % make -j16 FormatTests && ./tools/clang/unittests/Format/FormatTests Reviewers: djasper, jolesiak Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D46143 llvm-svn: 331067
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud