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 3081e19 commit 951f1f9Copy full SHA for 951f1f9
src/arduino.cc/builder/ctags_parser.go
@@ -189,11 +189,15 @@ func prototypeAndCodeDontMatch(tag map[string]string) bool {
189
190
code := removeSpacesAndTabs(tag[FIELD_CODE])
191
prototype := removeSpacesAndTabs(tag[KIND_PROTOTYPE])
192
- prototype = prototype[0 : len(prototype)-1]
+ prototype = removeTralingSemicolon(prototype)
193
194
return strings.Index(code, prototype) == -1
195
}
196
197
+func removeTralingSemicolon(s string) string {
198
+ return s[0 : len(s)-1]
199
+}
200
+
201
func removeSpacesAndTabs(s string) string {
202
s = strings.Replace(s, " ", "", -1)
203
s = strings.Replace(s, "\t", "", -1)
0 commit comments