[PATCH] D137825: [clang-include-cleaner] make SymbolLocation a real class, move FindHeaders

Thorsten via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 11 04:35:51 PST 2022


tschuett added a comment.

You could:

  static_assert(std::variant_size_v<....> == 2);
  
  Kind kind() const { if (std::holds_alternative<SourceLocation>(Storage))  return Kind::Physical; return Kind::Standard; }

and Kind could become `enum class Kind`. => You would get rid of the order on the variant and the `static_cast`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137825



More information about the cfe-commits mailing list