summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-27 05:24:37 +0000
committerChris Lattner <sabre@nondot.org>2006-10-27 05:24:37 +0000
commit9916c5ca7e1f5c58551b67d22ff608c5ccf5076b (patch)
tree2e3595ebb18f3df917f70f37c96baa3d9b161e61 /clang/Lex/Lexer.cpp
parentffda89611fcd8288a605b0fcc6b0e76fde618c3d (diff)
downloadbcm5719-llvm-9916c5ca7e1f5c58551b67d22ff608c5ccf5076b.tar.gz
bcm5719-llvm-9916c5ca7e1f5c58551b67d22ff608c5ccf5076b.zip
Remove GNU C++ min/max operator extension support, they have been removed
from gcc mainline. llvm-svn: 39067
Diffstat (limited to 'clang/Lex/Lexer.cpp')
-rw-r--r--clang/Lex/Lexer.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp
index 5777f21aa2d..8b783d61c95 100644
--- a/clang/Lex/Lexer.cpp
+++ b/clang/Lex/Lexer.cpp
@@ -1374,16 +1374,6 @@ LexNextToken:
} else if (Features.Digraphs && Char == '>') {
Result.setKind(tok::l_brace); // '<%' -> '{'
CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- } else if (Features.CPPMinMax && Char == '?') { // <?
- CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- Diag(BufferPtr, diag::min_max_deprecated);
-
- if (getCharAndSize(CurPtr, SizeTmp) == '=') { // <?=
- Result.setKind(tok::lessquestionequal);
- CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- } else {
- Result.setKind(tok::lessquestion);
- }
} else {
Result.setKind(tok::less);
}
@@ -1401,16 +1391,6 @@ LexNextToken:
} else if (Char == '>') {
Result.setKind(tok::greatergreater);
CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- } else if (Features.CPPMinMax && Char == '?') {
- CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- Diag(BufferPtr, diag::min_max_deprecated);
-
- if (getCharAndSize(CurPtr, SizeTmp) == '=') {
- Result.setKind(tok::greaterquestionequal); // >?=
- CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
- } else {
- Result.setKind(tok::greaterquestion); // >?
- }
} else {
Result.setKind(tok::greater);
}
OpenPOWER on IntegriCloud