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.

98 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. # Build artifacts
  8. .clang_complete
  9. .build/
  10. *.elf
  11. *.log
  12. *.lss
  13. *.lst
  14. *.map
  15. *.o
  16. *.stackdump
  17. *.sym
  18. # QMK-specific
  19. api_data/v1
  20. quantum/version.h
  21. *.bin
  22. *.eep
  23. *.hex
  24. *.qmk
  25. *.uf2
  26. # Old-style QMK Makefiles
  27. /keyboards/*/Makefile
  28. /keyboards/*/*/Makefile
  29. /keyboards/*/*/*/Makefile
  30. /keyboards/*/*/*/*/Makefile
  31. /keyboards/*/*/*/*/*/Makefile
  32. /keyboards/*/keymaps/Makefile
  33. /keyboards/*/*/keymaps/Makefile
  34. /keyboards/*/*/*/keymaps/Makefile
  35. /keyboards/*/*/*/*/keymaps/Makefile
  36. /keyboards/*/*/*/*/*/keymaps/Makefile
  37. # Eclipse/PyCharm/Other IDE Settings
  38. *.iml
  39. .browse.VC.db*
  40. .cproject
  41. .idea
  42. .idea/
  43. .project
  44. .settings/
  45. .vagrant/
  46. # ?
  47. .dep
  48. .history/
  49. build/
  50. cmake-build-debug
  51. CMakeLists.txt
  52. # Let these ones be user specific, since we have so many different configurations
  53. *.code-workspace
  54. .stfolder
  55. .tags
  56. .vscode/c_cpp_properties.json
  57. .vscode/ipch/
  58. .vscode/last.sql
  59. .vscode/launch.json
  60. .vscode/tasks.json
  61. .vscode/temp.sql
  62. tags
  63. # Ignore image/font files
  64. *.gif
  65. *.jpg
  66. *.png
  67. *.ttf
  68. *.otf
  69. # Things Travis sees
  70. /.vs
  71. id_rsa_*
  72. secrets.tar
  73. # Python things
  74. __pycache__
  75. .python-version
  76. # Prerequisites for updating ChibiOS
  77. /util/fmpp*
  78. # Allow to exist but don't include it in the repo
  79. user_song_list.h
  80. # clangd
  81. compile_commands.json
  82. .clangd/
  83. .cache/
  84. # VIA(L) json files that don't belong in QMK repo
  85. via*.json