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 2741 - PP output loses line count with -C
Summary: PP output loses line count with -C
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: Frontend (show other bugs)
Version: unspecified
Hardware: PC NetBSD
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks: 4068
  Show dependency tree
 
Reported: 2008-09-01 07:49 PDT by Neil Booth
Modified: 2010-03-12 00:57 PST (History)
3 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 Neil Booth 2008-09-01 07:49:52 PDT
For example, preprocessing the following with -C puts y on the wrong line.

/* a 
   boring
   comment */ 
y

Although a problem with -C, the issue is more generic, for example if the raw string literals patch is accepted it would have the same bug.
Comment 1 Eli Friedman 2009-06-14 15:58:17 PDT
*** Bug 4388 has been marked as a duplicate of this bug. ***