• Miguel Ojeda's avatar
    clang-format: add configuration file · d4ef8d3f
    Miguel Ojeda authored
    clang-format is a tool to format C/C++/...  code according to a set of
    rules and heuristics.  Like most tools, it is not perfect nor covers
    every single case, but it is good enough to be helpful.
    
    In particular, it is useful for quickly re-formatting blocks of code
    automatically, for reviewing full files in order to spot coding style
    mistakes, typos and possible improvements.  It is also handy for sorting
    ``#includes``, for aligning variables and macros, for reflowing text and
    other similar tasks.  It also serves as a teaching tool/guide for
    newcomers.
    
    The tool itself has been already included in the repositories of popular
    Linux distributions for a long time.  The rules in this file are
    intended for clang-format >= 4, which is easily available in most
    distributions.
    
    This commit adds the configuration file that contains the rules that the
    tool uses to know how to format the code according to the kernel coding
    style.  This gives us several advantages:
    
      * clang-forma...
    d4ef8d3f