LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 2788 - Track #line and # [0-9]+ directives in SourceLocation
Summary: Track #line and # [0-9]+ directives in SourceLocation
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: Frontend (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 15:11 PDT by Daniel Dunbar
Modified: 2010-03-12 00:57 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Dunbar 2008-09-11 15:11:10 PDT
This is a placeholder for implementing support for
preprocessor line directives.

This is apparently important for Parrot as well as
for correctly reparsing our own preprocessor output.
Comment 1 Nuno Lopes 2008-09-26 16:40:58 PDT
a little test case, which doesn't trigger any error with gcc, but clang does:

# 29 "/cvs/llvm/Debug/Headers/stdarg.h" 3 4
typedef __builtin_va_list va_list;
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
Comment 2 Chris Lattner 2009-02-17 01:17:26 PST
Done!