shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
106 stars 36 forks source link

Handle framework includes properly #20

Closed shevek closed 9 years ago

shevek commented 9 years ago

Will this work?

             }
             if (include(quoteincludepath, name))
                 return;
+        } else {
+            int idx = name.indexOf('/');
+            if (idx != -1) {
+                String frameworkName = name.substring(0, idx);
+                String headerName = name.substring(idx + 1);
+                String headerPath = frameworkName + ".framework/Headers/" + headerName;
+                if (include(frameworkspath, headerPath))
+                    return;
+            }
         }

         if (include(sysincludepath, name))
shevek commented 9 years ago

See framework-includes branch.

shevek commented 9 years ago

Merged.

shevek commented 9 years ago

| * dc18fec (HEAD, origin/master, master) Shevek 2014-09-11 12:22:48 -0700 Handle framework includes.