vim-clang-format
Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, and so on. (by rhysd)
include-what-you-use
A tool for use with clang to analyze #includes in C and C++ source files (by include-what-you-use)
vim-clang-format | include-what-you-use | |
---|---|---|
20 | 39 | |
1,060 | 3,893 | |
- | 3.1% | |
0.0 | 9.4 | |
over 2 years ago | 6 days ago | |
Vim Script | C++ | |
- | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-clang-format
Posts with mentions or reviews of vim-clang-format.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-30.
- Anyone want to collaborate on a project to complete following objectives?
-
How to write algorithm for this program
OP you can use something like Clang Format to format your code (I believe the Microsoft C/C++ extension for VSCode comes with it, not sure tho)
- Your top 5 coding standard rules (for C/C++)
-
Is there a tool which automatically formats your code in this way?
you can give it a try to clang-format: https://clang.llvm.org/docs/ClangFormat.html
- Lazyvim/Neovim Formatting Issue upon saving: A space is required between consecutive right angle brackets (use '> >') (fix available) clang
-
No warnings for unused variables C++
What you want is to use clang-format.
-
Who needs indents when you can use comments instead?
clang-format (https://clang.llvm.org/docs/ClangFormat.html) stop formatting your code manually - it is not your beautiful snowflake.
-
Tool to manage include files
You can also give clang format a list of regular expressions to sort the includes in a particular order if that's what you need https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includecategories
- Junior care face pe seful
-
Extremely basic question
Maybe use clang-format to reformat your code https://clang.llvm.org/docs/ClangFormat.html
include-what-you-use
Posts with mentions or reviews of include-what-you-use.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-05.
- IWYU: A tool for use with Clang to analyze includes in C and C++ source files
-
Script to find missing std includes in C++ headers
Interesting...how does it compare to https://github.com/include-what-you-use/include-what-you-use ?
-
Speed Up C++ Compilation
Build Insights in Visual Studio, include-what-you-use).
Looks like https://include-what-you-use.org/ might do that.
-
Is it good or bad practice to include headers that are indirectly included from other headers?
If you are worried about includes, use https://github.com/include-what-you-use/include-what-you-use and stop thinking about it.
-
how do you guys manage a include file mess ?
Getting rid of that is not straightforard, though some tools can help with that
-
Is it appropiate to comment what a header is needed for?
You can use the tool https://github.com/include-what-you-use/include-what-you-use to do this for for. It tracks included files and can give comment for what is used from each file. It also warns you when you include files that you don’t use
-
Hey Rustaceans! Got a question? Ask here (16/2023)!
Invisible imports (e.g. traits). In Python, everything is fully namespaced (unless you from import * in which case all bets are off). It's always explicit where a name is coming from. C is the opposite: #include lets you refer to anything defined in the headers with no namespacing. That's why a common strategy (include what you use) has an associated code style: after every non-std #include you have a comment saying which of its definitions you are using. Of course, Rust is much less implicit, but I still sometimes struggle with traits. For example, you can use tokio::net::TcpStream, but you need to also use tokio::io::AsyncReadExt for the .read trait to be defined on TcpStream. This makes it hard (for me) to answer questions like "what traits are currently available in this scope?" and "why is this module being imported?"
- I implemented a NASA image compression algorithm
-
IncludeGuardian - improve build times by removing expensive includes
Aside from being closed source and not available on all architectures, how does it compare to iwyu(https://include-what-you-use.org/) or clang's relatively recent include-fixer which is also accessible via clangd?
-
Do you include standard library headers in your implementation file, if they're already been included in the corresponding header file?
I set up include-what-you-use and I let it tell me which headers should be where. The IWYU rules would have put all needed headers including in the cpp file.
What are some alternatives?
When comparing vim-clang-format and include-what-you-use you can also consider the following projects:
formatter.nvim
cppinclude - Tool for analyzing includes in C++
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
coc-clangd - clangd extension for coc.nvim
vim-codefmt - Vim plugin for syntax-aware code formatting
cpplint - Static code checker for C++
vim-autoformat - Provide easy code formatting in Vim by integrating existing code formatters.
clangd - clangd language server
Cppcheck - static analysis of C/C++ code
fmt.vim - Generic code formatting interface for Vim
uncrustify - Code beautifier
vim-clang-format vs formatter.nvim
include-what-you-use vs cppinclude
vim-clang-format vs neoformat
include-what-you-use vs coc-clangd
vim-clang-format vs vim-codefmt
include-what-you-use vs cpplint
vim-clang-format vs vim-autoformat
include-what-you-use vs clangd
vim-clang-format vs clangd
include-what-you-use vs Cppcheck
vim-clang-format vs fmt.vim
include-what-you-use vs uncrustify