[PATCH] D113863: [clang-tidy] Make `readability-container-data-pointer` more robust

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 15 01:12:32 PST 2021


whisperity added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/readability/ContainerDataPointerCheck.cpp:20-23
+static const char ContainerExprName[] = "container-expr";
+static const char DerefContainerExprName[] = "deref-container-expr";
+static const char AddrofContainerExprName[] = "addrof-container-expr";
+static const char AddressOfName[] = "address-of";
----------------
Perhaps we could use `constexpr llvm::StringLiteral`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113863/new/

https://reviews.llvm.org/D113863



More information about the cfe-commits mailing list