summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/TokenLexer.cpp
diff options
context:
space:
mode:
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>2015-06-18 10:59:26 +0000
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>2015-06-18 10:59:26 +0000
commite59f8d7f1d88c3a316956a84c63646398a2dcbf5 (patch)
tree778d100bc6d6146647da0d061facdddc0f01dfab /clang/lib/Lex/TokenLexer.cpp
parent9869724dcfcd3b10cdcdfb7d8f7ab5f9d6ee6f5b (diff)
downloadbcm5719-llvm-e59f8d7f1d88c3a316956a84c63646398a2dcbf5.tar.gz
bcm5719-llvm-e59f8d7f1d88c3a316956a84c63646398a2dcbf5.zip
[clang] Refactoring of conditions so they use isOneOf() instead of multiple is().
llvm-svn: 240008
Diffstat (limited to 'clang/lib/Lex/TokenLexer.cpp')
-rw-r--r--clang/lib/Lex/TokenLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/TokenLexer.cpp b/clang/lib/Lex/TokenLexer.cpp
index 83efbab7613..e7512fa2831 100644
--- a/clang/lib/Lex/TokenLexer.cpp
+++ b/clang/lib/Lex/TokenLexer.cpp
@@ -185,7 +185,7 @@ void TokenLexer::ExpandFunctionArguments() {
if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace())
NextTokGetsSpace = true;
- if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) {
+ if (CurTok.isOneOf(tok::hash, tok::hashat)) {
int ArgNo = Macro->getArgumentNum(Tokens[i+1].getIdentifierInfo());
assert(ArgNo != -1 && "Token following # is not an argument?");
OpenPOWER on IntegriCloud