Bug 376563 - CODAN doesn't recognize GCC predefined macro __BASE_FILE__
Summary: CODAN doesn't recognize GCC predefined macro __BASE_FILE__
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 02:51 EDT by Alexander Strebkov CLA
Modified: 2013-07-17 21:11 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Strebkov CLA 2012-04-12 02:51:22 EDT
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857

When I use common predefined macro '__BASE_FILE__' Eclipse says: "Symbol '__BASE_FILE__' could not be resolved". But compilation is OK.

Reproducible: Always

Steps to Reproduce:
1. Create new C project
2. Type the following code:

#include <stdio.h>

int main()
{
    printf("%s\n", __BASE_FILE__);
    return 0;
}

3. Run C/C++ static analyzer.
Comment 1 Nathan Ridge CLA 2013-07-17 21:11:44 EDT
This macro is documented here: http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

__INCLUDE_LEVEL__ is another predefined GCC macro that CDT doesn't recognize.