[clang-tools-extra] 71a014f - [clangd] Add a newline-eof to the system-include-extractor.test
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 8 03:48:16 PST 2022
Author: Haojian Wu
Date: 2022-12-08T12:48:05+01:00
New Revision: 71a014fe9e92db40279f3901c9f03a048ec4da3f
URL: https://github.com/llvm/llvm-project/commit/71a014fe9e92db40279f3901c9f03a048ec4da3f
DIFF: https://github.com/llvm/llvm-project/commit/71a014fe9e92db40279f3901c9f03a048ec4da3f.diff
LOG: [clangd] Add a newline-eof to the system-include-extractor.test
This test is executed with config enabled, and it fails if there is an
extra (-Wnewline-eof) compile flag from the user config.
Added:
Modified:
clang-tools-extra/clangd/test/system-include-extractor.test
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/test/system-include-extractor.test b/clang-tools-extra/clangd/test/system-include-extractor.test
index cb894623a3b68..49bb8a6101338 100644
--- a/clang-tools-extra/clangd/test/system-include-extractor.test
+++ b/clang-tools-extra/clangd/test/system-include-extractor.test
@@ -53,7 +53,7 @@
"uri": "file://INPUT_DIR/the-file.cpp",
"languageId":"cpp",
"version":1,
- "text":"#include <a.h>\n#include <b.h>\n#if !defined(__ARM_ARCH) || !defined(__gnu_linux__)\n#error \"Invalid target\"\n#endif"
+ "text":"#include <a.h>\n#include <b.h>\n#if !defined(__ARM_ARCH) || !defined(__gnu_linux__)\n#error \"Invalid target\"\n#endif\n"
}
}
}
More information about the cfe-commits
mailing list