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.

113 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. *.stackdump
  20. *.sym
  21. # QMK-specific
  22. api_data/v1
  23. quantum/version.h
  24. *.bin
  25. *.eep
  26. *.hex
  27. *.qmk
  28. *.uf2
  29. # DD config at wrong location
  30. /keyboards/**/keymaps/*/info.json
  31. # Old-style QMK Makefiles
  32. /keyboards/**/Makefile
  33. # kbfirmware....
  34. /keyboards/**/kb.h
  35. /keyboards/**/kb.c
  36. # Eclipse/PyCharm/Other IDE Settings
  37. *.iml
  38. .browse.VC.db*
  39. .cproject
  40. .idea
  41. .idea/
  42. .project
  43. .settings/
  44. # ?
  45. .dep
  46. .history/
  47. build/
  48. cmake-build-debug
  49. CMakeLists.txt
  50. *.pdf
  51. # Let these ones be user specific, since we have so many different configurations
  52. *.code-workspace
  53. .stfolder
  54. .tags
  55. .vscode/c_cpp_properties.json
  56. .vscode/ipch/
  57. .vscode/last.sql
  58. .vscode/launch.json
  59. .vscode/tasks.json
  60. .vscode/temp.sql
  61. tags
  62. # Ignore image/font files
  63. *.bmp
  64. *.wbmp
  65. *.gif
  66. *.jpg
  67. *.jpeg
  68. *.png
  69. *.apng
  70. *.mng
  71. *.svg
  72. *.webp
  73. *.webm
  74. *.avi
  75. *.mp4
  76. *.mpeg
  77. *.ttf
  78. *.otf
  79. # Things Travis sees
  80. /.vs
  81. id_rsa_*
  82. secrets.tar
  83. # Python things
  84. __pycache__
  85. .python-version
  86. .venv
  87. # Prerequisites for updating ChibiOS
  88. /util/fmpp*
  89. # Allow to exist but don't include it in the repo
  90. user_song_list.h
  91. # clangd
  92. compile_commands.json
  93. .clangd/
  94. .cache/
  95. # VIA(L) files that don't belong in QMK repo
  96. via*.json
  97. /keyboards/**/keymaps/vial/*