diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-12-29 23:06:17 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-12-29 23:06:17 +0000 |
commit | 87455cb66c8b9e8d0311e38e013fb1629ac6ea99 (patch) | |
tree | d5e2c0038f769f574656b232494059ee1e16c675 /include/clang/Basic/DiagnosticLexKinds.td | |
parent | 78eca64919c366b8a11128cdbe70ae2720aa207b (diff) |
Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 38599d6b1f..2ed40c0cde 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -59,6 +59,9 @@ def ext_dollar_in_identifier : Extension<"'$' in identifier">, def ext_charize_microsoft : Extension< "charizing operator #@ is a Microsoft extension">, InGroup<MicrosoftCharize>; +def ext_comment_paste_microsoft : Extension< + "pasting two '/' tokens into a '//' comment token is a Microsoft extension">, + InGroup<MicrosoftCommentPaste>; def ext_token_used : Extension<"extension used">, InGroup<DiagGroup<"language-extension-token">>; |