BasedOnStyle: Google

# Too allow reasonably indented AR lambdas
ColumnLimit: 120

# Requested to allow better screen width usage on indented lines
IndentWidth: 2
ContinuationIndentWidth: 2

# General
PointerAlignment: Left
UseTab: Never
Standard: Cpp11

# Helps to fix inlined lambda callbacks when used as function paramaters,
# aligning reduces the usable column count
AlignAfterOpenBracket: DontAlign

# Legacy comments do not all reflow well, prevents unwanted wrapping of comments.
# New comments users should take into account reasonable column width when making
# new comments to ensure readability
ReflowComments: true
CommentPragmas: '!<'

# Some of our tooling uses string literals to allow quick lookups of error codes.
# Wrapping literals makes it more difficult to search the literals
BreakStringLiterals: false

# Helps to allow better debugging and breakpoint placement
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false


# Header ordering example, each is a unique catagory

# include "pch.h"
# include "third_party/header.h"
# include <third_party/system_header>
# include <vector>
# include <gtest>

IncludeBlocks: Regroup
IncludeCategories:
  - Regex:           '(pch.h)"' # pch always first
    Priority:        -1
  - Regex:           '^(<|")(gtest|gmock)' # testing libs last
    Priority:        5
  - Regex:           '<[[:alnum:]]+>' # system libs with without path component should be stdlibs
    Priority:        4
  - Regex:           '<(windows)' # windows
    Priority:        2
  - Regex:           '<' # system libs with path component are external 3rd party
    Priority:        3
  - Regex:           '.*' # local includes
    Priority:        1

---
Language: Java
IndentWidth: 4
ContinuationIndentWidth: 4
