[ https://issues.apache.org/jira/browse/THRIFT-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819412#comment-13819412 ]
Jens Geyer commented on THRIFT-2245: ------------------------------------ +1, LGTM > Allow Custom Prefix in Include Guards > ------------------------------------- > > Key: THRIFT-2245 > URL: https://issues.apache.org/jira/browse/THRIFT-2245 > Project: Thrift > Issue Type: Improvement > Components: C++ - Compiler > Reporter: Andrii Shyshkalov > Assignee: Ben Craig > Priority: Minor > Attachments: thrift-2245-cpp-include-guards-prefix.patch > > > C++ header files currently have include guards like this: > {code:title=Service.h|borderStyle=solid} > #ifndef Service_H > #define Service_H > {code} > This may cause collisions as the Service_H is not really unique. I've added > include_guard_prefix option to c++ compiler. Compiling with > {{thrift --gen cpp:include_guard_prefix=CUSTOM_GUARD_ ...}} > will produce > {code:title=Service.h|borderStyle=solid} > #ifndef CUSTOM_GUARD_Service_H > #define CUSTOM_GUARD_Service_H > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)