summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticLexKinds.td
diff options
context:
space:
mode:
authorTaewook Oh <twoh@fb.com>2016-06-03 18:52:51 +0000
committerTaewook Oh <twoh@fb.com>2016-06-03 18:52:51 +0000
commit4adb3cedbb756d444192b7e23da778aa830c08e8 (patch)
tree5b3b6f4074f0e79ab077fad12e529199181f77ac /include/clang/Basic/DiagnosticLexKinds.td
parent3615f1a26931f4977fadecf324a515080970277a (diff)
Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.
Differential Revision: http://reviews.llvm.org/D19843 Corresponding LLVM change: http://reviews.llvm.org/D19842 Patch by Eric Niebler git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticLexKinds.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td
index dab8cf279c..52116a603d 100644
--- a/include/clang/Basic/DiagnosticLexKinds.td
+++ b/include/clang/Basic/DiagnosticLexKinds.td
@@ -274,6 +274,10 @@ def ext_missing_whitespace_after_macro_name : ExtWarn<
"whitespace required after macro name">;
def warn_missing_whitespace_after_macro_name : Warning<
"whitespace recommended after macro name">;
+def pp_nonportable_path : Warning<
+ "non-portable path to file '%0'; specified path differs in case from file"
+ " name on disk">,
+ InGroup<NonportableIncludePath>;
def pp_pragma_once_in_main_file : Warning<"#pragma once in main file">,
InGroup<DiagGroup<"pragma-once-outside-header">>;