[NFC][analyzer] Cleanup dead code around NodeBuilder (#179711) As I was trying to understand the class `NodeBuilder` and its subclasses, I wasted a few hours on studying dead or needlessly complicated code. I'm creating this patch to ensure that others in the future won't need to bother with this cruft. This commit eliminates three deficiencies: - (Small change:) In a constructor of `StmtNodeBuilder` I switched to using the `takeNodes()` overload which accepts an `ExplodedNodeSet` (instead of manually iterating). - The `Finalized` attribute of NodeBuilder was completely irrelevant (it was always initialized to `true`). - The "main" feature of `NodeBuilderWithSinks` was that it gathered the generated sink nodes into a set, but this was never actually used. As the only other feature (storing a `ProgramPoint` in a data member) was very trivial, I replaced this class with a plain `NodeBuilder` in the only location that used it. GitOrigin-RevId: 41de4b1c6fb86cc09079c9e345f4cc5000c373b4
Welcome to Clang.
This is a compiler front-end for the C family of languages (C, C++ and Objective-C) which is built as part of the LLVM compiler infrastructure project.
Unlike many other compiler frontends, Clang is useful for a number of things beyond just compiling code: we intend for Clang to be host to a number of different source-level tools. One example of this is the Clang Static Analyzer.
If you're interested in more (including how to build Clang) it is best to read the relevant websites. Here are some pointers:
Information on Clang: http://clang.llvm.org/
Building and using Clang: http://clang.llvm.org/get_started.html
Clang Static Analyzer: http://clang-analyzer.llvm.org/
Information on the LLVM project: http://llvm.org/
If you have questions or comments about Clang, a great place to discuss them is on the Clang forums:
If you find a bug in Clang, please file it in the LLVM bug tracker: