You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
1.3 KiB

13 years ago
13 years ago
13 years ago
New CLI subcommand to create clang-compatible compilation database (`compile_commands.json`) (#14370) * pulled source from dev branch * missed a file from origin * formatting * revised argument names. relaxed matching rules to work for avr too * add docstrings * added docs. tightened up regex * remove unused imports * cleaning up command file. use existing qmk dir constant * rename parser library file * move lib functions into command file. there are only 2 and they aren't large * currently debugging... * more robustly find config * updated docs * remove unused imports * reuse make executable from the main make command * pulled source from dev branch * missed a file from origin * formatting * revised argument names. relaxed matching rules to work for avr too * add docstrings * added docs. tightened up regex * remove unused imports * cleaning up command file. use existing qmk dir constant * rename parser library file * move lib functions into command file. there are only 2 and they aren't large * currently debugging... * more robustly find config * updated docs * remove unused imports * reuse make executable from the main make command * remove MAKEFLAGS from environment for better control over process management * Update .gitignore Co-authored-by: Michael Forster <forster@google.com> * add a usage line to docs * doc change as suggested Co-authored-by: Nick Brassel <nick@tzarc.org> * rename command * remove debug print statements * generate-compilation-database: fix arg handling * generate-comilation-db: improve error handling * use cli.run() instead of Popen() Co-authored-by: Xton <cdewan@apple.com> Co-authored-by: Christon DeWan <cmdpix@mac.com> Co-authored-by: Michael Forster <forster@google.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
2 years ago
  1. # Junk files
  2. *.bak
  3. *.swp
  4. *~
  5. .DS_Store
  6. ._*
  7. # Merge files
  8. *.orig
  9. *.rej
  10. # Build artifacts
  11. .clang_complete
  12. .build/
  13. *.elf
  14. *.log
  15. *.lss
  16. *.lst
  17. *.map
  18. *.o
  19. *.a
  20. *.so
  21. *.dylib
  22. *.dll
  23. *.la
  24. *.stackdump
  25. *.sym
  26. # QMK-specific
  27. api_data/v1
  28. quantum/version.h
  29. *.bin
  30. *.eep
  31. *.hex
  32. *.qmk
  33. *.uf2
  34. # DD config at wrong location
  35. /keyboards/**/keymaps/*/info.json
  36. /keyboards/**/keymaps/*/keyboard.json
  37. # Old-style QMK Makefiles
  38. /keyboards/**/Makefile
  39. # kbfirmware....
  40. /keyboards/**/kb.h
  41. /keyboards/**/kb.c
  42. # Eclipse/PyCharm/Other IDE Settings
  43. *.iml
  44. .browse.VC.db*
  45. .cproject
  46. .idea
  47. .idea/
  48. .project
  49. .settings/
  50. # ?
  51. .dep
  52. .history/
  53. build/
  54. cmake-build-debug
  55. CMakeLists.txt
  56. *.pdf
  57. # Let these ones be user specific, since we have so many different configurations
  58. *.code-workspace
  59. .stfolder
  60. .tags
  61. .vscode/c_cpp_properties.json
  62. .vscode/ipch/
  63. .vscode/last.sql
  64. .vscode/launch.json
  65. .vscode/tasks.json
  66. .vscode/temp.sql
  67. tags
  68. # Ignore image/font files
  69. *.bmp
  70. *.wbmp
  71. *.gif
  72. *.jpg
  73. *.jpeg
  74. *.png
  75. *.apng
  76. *.mng
  77. *.svg
  78. *.webp
  79. *.webm
  80. *.avi
  81. *.mp4
  82. *.mpeg
  83. *.ttf
  84. *.otf
  85. # Things Travis sees
  86. /.vs
  87. id_rsa_*
  88. secrets.tar
  89. # Python things
  90. __pycache__
  91. .python-version
  92. .venv
  93. # Prerequisites for updating ChibiOS
  94. /util/fmpp*
  95. # Allow to exist but don't include it in the repo
  96. user_song_list.h
  97. # clangd
  98. compile_commands.json
  99. .clangd/
  100. .cache/
  101. # VIA(L) files that don't belong in QMK repo
  102. via*.json
  103. /keyboards/**/keymaps/vial/*