Displaying 2 results from an estimated 2 matches for "3350673a".
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.
2016 Mar 09
2
"Do not use Static Constructors" LLVM Coding Standard rule question
...________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160308/3350673a/attachment.html>