diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-27 05:24:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-27 05:24:37 +0000 |
| commit | 9916c5ca7e1f5c58551b67d22ff608c5ccf5076b (patch) | |
| tree | 2e3595ebb18f3df917f70f37c96baa3d9b161e61 /clang/Lex/Lexer.cpp | |
| parent | ffda89611fcd8288a605b0fcc6b0e76fde618c3d (diff) | |
| download | bcm5719-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.cpp | 20 |
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); } |

