[cfe-dev] Possible bug in find_first_component() (lib/Support/Path.cpp)

Du Toit, Stefanus stefanus.du.toit at intel.com
Fri Aug 2 11:24:12 PDT 2013


+Michael

From: <Siraj>, Tareq Siraj <tareq.a.siraj at intel.com<mailto:tareq.a.siraj at intel.com>>
Date: Friday, 2 August, 2013 2:17 PM
To: "cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>" <cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>>
Subject: [cfe-dev] Possible bug in find_first_component() (lib/Support/Path.cpp)

Does anyone know why the search for file/directory start from index 2? For shorter relative paths e.g. “e/f/foo.c” this will return “e/f” as the path component when iterating through the path.

Seems like it’s been there since it was added by mspencer (not sure what his email address is, please cc if you know) in PathV2.cpp.

http://llvm-reviews.chandlerc.com/diffusion/L/browse/llvm/trunk/lib/Support/Path.cpp;187660$80

Thanks.

--
Tareq A. Siraj
  Software Developer
  Intel of Canada, Inc.





More information about the cfe-dev mailing list