[PATCH] D149144: [clang][dataflow] Eliminate intermediate `ReferenceValue`s from `Environment::DeclToLoc`.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 26 12:01:05 PDT 2023


mboehme marked an inline comment as done.
mboehme added inline comments.


================
Comment at: clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp:43
 
+namespace {
+
----------------
gribozavr2 wrote:
> mboehme wrote:
> > There were a number of pre-existing declarations that were ODR violation risks. I'm adding a new file-local function below, so instead of making it static, I decided to put everything that's supposed to be file-local in an anonymous namespace.
> https://llvm.org/docs/CodingStandards.html#anonymous-namespaces
> 
> "Avoid putting declarations other than classes into anonymous namespaces"
Thanks for the pointer -- done!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149144



More information about the cfe-commits mailing list