[PATCH] D152589: [clang-tidy] Add readability test for not allowing relative includes
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 10 00:32:13 PDT 2023
PiotrZSL added a comment.
Even with that for me for example, I would consider `#include "xyz"` be fine, but `#include "../xyz"` would be a red flag, so please consider adding `StrictMode` option to check so if `StrictMode` is not set then includes from same directory, or subdirectory would be allowed, but includes that contain `..` would not.
With that settings, I could use that check, and probably many other users could.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152589/new/
https://reviews.llvm.org/D152589
More information about the cfe-commits
mailing list