https://defect.opensolaris.org/bz/show_bug.cgi?id=16760
Summary: Generating incorrect links for C/C++ "#include"
statements if extension of a header file is not on the
lexer's list
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
--- Comment #0 from Yuriy Vasylchenko <[email protected]> 2010-08-09 22:20:46
UTC ---
For example I got invalid link to "header.h" + trailing "h" for the statement
"#include <header.hh>"
Workaround that helped me to cover the code tree:
--- src.ori/org/opensolaris/opengrok/analysis/c/CXref.lex 2010-05-11
02:12:43.000000000 -0700
+++ src/org/opensolaris/opengrok/analysis/c/CXref.lex 2010-08-02
13:38:17.643478404 -0700
@@ -66,7 +66,7 @@
URIChar = [\?\+\%\&\:\/\...@\_\;\=\$\,\-\!\~\*\\]
FNameChar = [a-zA-Z0-9_\-\.]
-File = [a-zA-Z]{FNameChar}* "."
([chts]|"conf"|"java"|"cpp"|"hpp"|"CC"|"txt"|"htm"|"html"|"pl"|"xml")
+File = [a-zA-Z]{FNameChar}* "."
([chts]|"conf"|"java"|"cpp"|"hpp"|"CC"|"txt"|"htm"|"html"|"pl"|"xml"|"cc"|"cxx"|"c++"|"hh"|"hxx"|"h++")
Path = "/"? [a-zA-Z]{FNameChar}* ("/" [a-zA-Z]{FNameChar}*[a-zA-Z0-9])+
Number = ([0-9][0-9]*|[0-9]+.[0-9]+|"0x" [0-9a-fA-F]+ )([udl]+)?
--- src.ori/org/opensolaris/opengrok/analysis/c/CxxXref.lex 2010-05-11
02:12:43.000000000 -0700
+++ src/org/opensolaris/opengrok/analysis/c/CxxXref.lex 2010-08-02
13:39:02.935826843 -0700
@@ -66,7 +66,7 @@
URIChar = [\?\+\%\&\:\/\...@\_\;\=\$\,\-\!\~\*\\]
FNameChar = [a-zA-Z0-9_\-\.]
-File = [a-zA-Z]{FNameChar}* "."
([chts]|"conf"|"java"|"cpp"|"hpp"|"CC"|"txt"|"htm"|"html"|"pl"|"xml")
+File = [a-zA-Z]{FNameChar}* "."
([chts]|"conf"|"java"|"cpp"|"hpp"|"CC"|"txt"|"htm"|"html"|"pl"|"xml"|"cc"|"cxx"|"c++"|"hh"|"hxx"|"h++")
Path = "/"? [a-zA-Z]{FNameChar}* ("/" [a-zA-Z]{FNameChar}*[a-zA-Z0-9])+
Number = ([0-9][0-9]*|[0-9]+.[0-9]+|"0x" [0-9a-fA-F]+ )([udl]+)?
--
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev