[cfe-dev] Is it safe to cast-away constness to use Clang static analysis?

Csaba Raduly via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 4 00:30:49 PDT 2017

On Wed, Oct 4, 2017 at 2:20 AM, John McCall via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> The AST is largely immutable by design, and the best solution would probably
> be to adopt what LLVM did to Type and just mass-refactor code to stop
> passing around const pointers at all.

If the AST is meant to be immutable, why not pass const
{pointers,references} around?

GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

More information about the cfe-dev mailing list