We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ee339 commit 5058ca6Copy full SHA for 5058ca6
clang/test/Tooling/clang-check-fixit.cpp
clang/tools/clang-check/ClangCheck.cpp
@@ -90,6 +90,9 @@ class FixItOptions : public clang::FixItOptions {
90
}
91
92
std::string RewriteFilename(const std::string& filename, int &fd) override {
93
+ assert(llvm::sys::path::is_absolute(filename) &&
94
+ "clang-fixit expects absolute paths only.");
95
+
96
// We don't need to do permission checking here since clang will diagnose
97
// any I/O errors itself.
98
0 commit comments