================
@@ -11,51 +11,124 @@
#include "clang/Lex/Lexer.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
+#include "llvm/ADT/STLForwardCompat.h"
#include <array>
namespace clang::tidy::readability {
namespace {
-class IfPreprocessorCallbacks final : public PPCallbacks {
+enum class DirectiveKind : bool { If, Elif };
----------------
localspook wrote:
This is just something I've gotten into the habit of doing by default. I don't
*like* doing it, I think the fact that the underlying type is `int` unless
otherwise specified is one of C++'s bad defaults, but the cost of fighting that
default is small.
https://github.com/llvm/llvm-project/pull/156220
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits