瀏覽代碼

Declare TIGCC's calling convention macros to ctags so it recognizes prototypes using them.

git-svn-id: file:///var/svn/tigccpp/trunk@704 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 年之前
父節點
當前提交
d1fff48f89
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      ktigcc/parsing.cpp

+ 5 - 1
ktigcc/parsing.cpp

@@ -46,7 +46,11 @@ SourceFileFunctions getCFunctions(const QString &text)
       KProcess::Stdout|KProcess::MergedStderr));
     procio.setWorkingDirectory(tempdir);
     procio<<"ctags"<<"-f"<<"-"<<"-n"<<"-u"<<"-h"<<".h"<<"--language-force=C"
-           <<"--C-kinds=pf"<<"--fields=k"<<"parser_temp_source.c";
+          <<"--C-kinds=pf"<<"--fields=k"<<"-I"<<"CALLBACK,__ATTR_TIOS__,"
+            "__ATTR_TIOS_NORETURN__,__ATTR_TIOS_CALLBACK__,__ATTR_GCC__,"
+            "__ATTR_LIB_C__,__ATTR_LIB_ASM__,__ATTR_LIB_ASM_NORETURN__,"
+            "__ATTR_LIB_CALLBACK_C__,__ATTR_LIB_CALLBACK_ASM__"
+          <<"parser_temp_source.c";
     if (!procio.start()) {
       delete_temp_file("parser_temp_source.c");
       KMessageBox::error(0,"Could not run ctags.\nThis feature requires "