[LLVMdev] Naming conventions in LLVM code

Óscar Fuentes ofv at wanadoo.es
Thu Sep 23 09:49:04 PDT 2010


Cameron Zwarich <zwarich at apple.com> writes:

> Are there standard naming conventions in LLVM code? Most of the
> variable, member function, and member variable names seem to be
> camelcase, beginning with either lowercase or uppercase, or
> initialisms. But there are exceptions, e.g. some parts of classes
> dealing with iterators use an STL naming convention with
> underscores. Is this written down anywhere?

The rules for writing LLVM code are here:

http://www.llvm.org/docs/CodingStandards.html

The paragraph in bold typeface on the Introduction may answer your
question.




More information about the llvm-dev mailing list