Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4231

Fix ctags index of functions with attributes

    • Storage Engines 2018-09-10

      I noticed that running dist/s_tags fails to index some functions. In particular, I noticed that __wt_modify_apply_api was missing, then noticed it had a WT_GCC_FUNC_ATTRIBUTE tag.

      Adding '-I WT_GCC_FUNCT_ATTRIBUTE+' to $flags fixes this, so such functions are indexed as expected.

       

      diff --git a/dist/s_tags b/dist/s_tags
      index edb156799..48aa98cb4 100755
      --- a/dist/s_tags
      +++ b/dist/s_tags
      @@ -20,7 +20,7 @@ type ctags > /dev/null 2>&1 || {
      
       # Test to see what flags this ctags binary supports.
       flags=""
      -for i in -d -t -w --language-force=C; do
      +for i in -d -t -w --language-force=C '-I WT_GCC_FUNC_ATTRIBUTE+'; do
              if ctags $i ../src/conn/api_strerror.c 2>/dev/null; then
                      flags="$i $flags"
              fi
      

            Assignee:
            neha.khatri Neha Khatri
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: