8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f371d2 commit 830f8f2Copy full SHA for 830f8f2
src/arduino.cc/builder/ctags_parser.go
@@ -180,11 +180,15 @@ func prototypeAndCodeDontMatch(tag map[string]string) bool {
180
181
code := removeSpacesAndTabs(tag[FIELD_CODE])
182
prototype := removeSpacesAndTabs(tag[KIND_PROTOTYPE])
183
- prototype = prototype[0 : len(prototype)-1]
+ prototype = removeTralingSemicolon(prototype)
184
185
return strings.Index(code, prototype) == -1
186
}
187
188
+func removeTralingSemicolon(s string) string {
189
+ return s[0 : len(s)-1]
190
+}
191
+
192
func removeSpacesAndTabs(s string) string {
193
s = strings.Replace(s, " ", "", -1)
194
s = strings.Replace(s, "\t", "", -1)
0 commit comments