Project

General

Profile

Actions

Bug #298

closed

lttng-gen-tp generates non-standard #include guards

Added by Sébastien Barthélémy over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Yannick Brosseau
Target version:
Start date:
07/10/2012
Due date:
% Done:

100%

Estimated time:

Description

The #include guard starts with an underscore followed by a capital letter. This is reserved:
http://gcc.gnu.org/onlinedocs/cpp/System_002dspecific-Predefined-Macros.html

$ echo "// coucou" > hello.tp
$ lttng-gen-tp hello.tp
$ head -n 15 hello.h

#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER 

#undef TRACEPOINT_INCLUDE_FILE
#define TRACEPOINT_INCLUDE_FILE ./hello.h

#ifdef __cplusplus
#extern "C"{
#endif /*__cplusplus */

#if !defined(_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _HELLO_H
Actions #1

Updated by Mathieu Desnoyers over 11 years ago

  • Status changed from New to Confirmed
  • Assignee set to Yannick Brosseau
Actions #2

Updated by Anonymous over 11 years ago

  • Project changed from LTTng-tools to LTTng-UST
Actions #3

Updated by Julien Desfossez over 11 years ago

  • Target version set to 2.1 stable
Actions #4

Updated by Mathieu Desnoyers over 11 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF