Bug 192018 - [C99 Parser] #include "stdio.h" fails to find system include
Summary: [C99 Parser] #include "stdio.h" fails to find system include
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0   Edit
Assignee: Mike Kucera CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 191979 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-11 14:23 EDT by Jason Montojo CLA
Modified: 2008-06-20 10:04 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (1.45 KB, patch)
2007-06-11 14:25 EDT, Jason Montojo CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Montojo CLA 2007-06-11 14:23:20 EDT
According to the C99 spec, if a local inclusion yields no match, the preprocessor should try to locate the file as if it were a system inclusion.  In other words, if this doesn't locate a file:

#include "stdio.h"

... then it should be treated as if it were orginally written like this:

#include <stdio.h>

Right now, the C99 parser doesn't do this.

Patch in progress.
Comment 1 Jason Montojo CLA 2007-06-11 14:25:19 EDT
Created attachment 70876 [details]
Proposed patch
Comment 2 Mike Kucera CLA 2007-06-11 14:33:57 EDT
*** Bug 191979 has been marked as a duplicate of this bug. ***
Comment 3 Mike Kucera CLA 2007-06-11 15:19:49 EDT
Patch applied, thanks Jason.
Comment 4 Doug Schaefer CLA 2008-06-03 14:55:09 EDT
assigning
Comment 5 Doug Schaefer CLA 2008-06-03 14:55:38 EDT
done