-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up some DX features for OSS (#9565)
Summary: These will be helpful both in the future and when applying parts of #9564. * Set up .editorconfig to ensure consistent indents. * Instruct CMake to export a clangd JSON compilation database that IDEs can integrate with. Pull Request resolved: #9565 Reviewed By: Wilfred Differential Revision: D67870812 fbshipit-source-id: 8d1db6b9002e65e8cf52d0a0d005ed4fe49259cf
- Loading branch information
1 parent
df48bbf
commit 41db10d
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[{CMakeLists.txt,*.cmake,*.h,*.cpp}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,3 +100,6 @@ CPackSourceConfig.cmake | |
|
||
# python scripts | ||
*.pyc | ||
|
||
# clangd JSON Compilation Database | ||
compile_commands.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters