summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/missing-include-range-check.h
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2016-10-25 10:13:10 +0000
committerErik Verbruggen <erikjv@me.com>2016-10-25 10:13:10 +0000
commit45449548c2959f9b3032a2aeb240daaa45b9e104 (patch)
treed5366439af10924b6790bdb41b8983c96d20a69a /clang/test/Preprocessor/missing-include-range-check.h
parent490823746a13bca58798e11543701c1cd30ffdf6 (diff)
downloadbcm5719-llvm-45449548c2959f9b3032a2aeb240daaa45b9e104.tar.gz
bcm5719-llvm-45449548c2959f9b3032a2aeb240daaa45b9e104.zip
Include full filename range for missing includes
For the purpose of highlighting in an IDE. llvm-svn: 285057
Diffstat (limited to 'clang/test/Preprocessor/missing-include-range-check.h')
-rw-r--r--clang/test/Preprocessor/missing-include-range-check.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/missing-include-range-check.h b/clang/test/Preprocessor/missing-include-range-check.h
new file mode 100644
index 00000000000..6b3f7d35612
--- /dev/null
+++ b/clang/test/Preprocessor/missing-include-range-check.h
@@ -0,0 +1,8 @@
+// RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -test-load-source all %s > /dev/null 2> %t.err
+// RUN: FileCheck < %t.err -check-prefix=CHECK-RANGE %s
+
+#include <foobar.h>
+#include "moozegnarf.h"
+
+// CHECK-RANGE: rewrite-includes-missing.c:4:10:{4:10-4:19}: fatal error: 'foobar.h' file not found
+// CHECK-RANGE: rewrite-includes-missing.c:5:10:{5:10-5:24}: fatal error: 'moozegnarf.h' file not found
OpenPOWER on IntegriCloud