iwyu: Add patch to prefer angled brackets over quotes for includes
This commit is contained in:
4 files changed
+17
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
Prefer angled brackets over quotes for include directives.
|
||||
See: https://en.cppreference.com/w/cpp/preprocessor/include.html.
|
||||
|
||||
--- a/iwyu_path_util.cc
|
||||
+++ b/iwyu_path_util.cc
|
||||
@@ -211,7 +211,7 @@ bool IsQuotedInclude(const string& s) {
|
||||
}
|
||||
|
||||
string AddQuotes(string include_name, bool angled) {
|
||||
- if (angled) {
|
||||
+ if (true) {
|
||||
return "<" + include_name + ">";
|
||||
}
|
||||
return "\"" + include_name + "\"";
|
||||
Reference in new issue
Block a user