Skip to content

Commit

Permalink
gen: add temporary hack for Documentation.h header
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Sep 27, 2020
1 parent 3c9a3b5 commit fe058c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions headerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gen
import (
"fmt"
"io/ioutil"
"path/filepath"
"regexp"
"strings"

Expand Down Expand Up @@ -87,6 +88,10 @@ func (h *HeaderFile) handleFile(cursor clang.Cursor) {
if !strings.HasPrefix(sourceFile.Name(), h.Path) {
return clang.ChildVisit_Continue
}
// TODO(zchee): Documentation.h header haven't correct cursor information
if h.Filename == "Documentation.h" && filepath.Base(sourceFile.Name()) == "Index.h" {
return clang.ChildVisit_Continue
}

cname := cursor.Spelling()
cnameIsTypeDef := false
Expand Down

0 comments on commit fe058c9

Please sign in to comment.