[LLVMdev] Regular Expression lib support

Bill Wendling isanbard at gmail.com
Wed Aug 26 22:59:50 PDT 2009


On Aug 26, 2009, at 12:25 AM, HyperQuantum wrote:

>>> +//===-- Regex.h - Regular Expression matcher implementation  
>>> -------------===//
>>
>> Include C++ marker please (*- C++ -*-===//)
>
> Just out of curiosity, what is this marker used for?

It's used by emacs to tell it what "code mode" to use when editing the  
file. If you didn't specify anything, it would treat the .h as a C  
file. The highlighting and automatic formatting emacs does then won't  
be correct for C++ constructs like classes and namespaces.

-bw




More information about the llvm-dev mailing list