Displaying 1 result from an estimated 1 matches for "78d36470".
2016 Mar 09
2
"Do not use Static Constructors" LLVM Coding Standard rule question
Hi,
I'm new here and have a question about the rule in title. Is the following
use case also prohibited?
int findNameId(StringRef Name)
{
static StringMap<int> Map = createSomeIDMap();
return Map.lookup(Name);
};
It seems it isn't influence startup time and doesn't create initialization
order problems. Clang isn't complaining about it with -Wglobal-constructor
flag.