aboutsummaryrefslogtreecommitdiff
path: root/strutil.cc
AgeCommit message (Collapse)Author
2017-10-11`clang-format -i -style=file *.cc *.h`Dan Willemsen
Change-Id: I62a87c5d8309b21265e904c0aeb9b3e094c9024a
2017-02-22Add --color_warnings to make warnings/errors like clangDan Willemsen
This adds new (WARN|KATI_WARN|ERROR)_LOC log macro variants that take a location as the first argument, and will prefix that location information to the warning/error lines. When --color_warnings is enabled, it reformats them to have a standard warning:/error: infix, and adds colors in order to match the warnings/errors produced by clang.
2016-11-01Fix some possible performance issues found by clang-tidyDan Willemsen
No obvious time differences when building AOSP, but these all seem like reasonable changes.
2016-09-19Fix unused parameter warning for !SSE4.2Dan Willemsen
Change-Id: I7099c92120dde0d985bc9d19fe0b2573027e5d79
2016-06-30[C++] Remove code only for non-SSE environmentShinichiro Hamaji
Now SkipUntil works both with and without SSE.
2016-06-30[C++] Do not use STTNI when string length is <16Shinichiro Hamaji
2016-06-30[C++] Fix strutil_test for non-SSE buildShinichiro Hamaji
2016-02-29[C++] Honor string length in FindEndOfLineShinichiro Hamaji
When the character after the string is a backslash, FindOfLine returned a wrong length.
2016-02-29[C++] Finish FindEndOfLine at NULL characeterShinichiro Hamaji
2016-02-22[C++] Fix comment_in_command.mkShinichiro Hamaji
Newline characters were escaped for some reason.
2016-02-22[C++] EscapeShell in SSE4.2Shinichiro Hamaji
2016-02-18[C++] Handle multi-word SHELL in $(shell)Shinichiro Hamaji
2016-02-17[C++] Use SSE 4.2 in FindEndOfLineShinichiro Hamaji
2016-02-12[C++] Skip the first isSpace in WordScannerShinichiro Hamaji
2016-02-03[C++] Optimize WordScanner with SSE4.2Shinichiro Hamaji
before: 0.668325s after: 0.260734s
2016-02-02[C++] Make WordScanner faster by not using isspaceShinichiro Hamaji
It seems this makes strutil_bench much faster probably due to the cost of function calls: before: 1.178698s after: 0.668325s
2015-10-13[C++] Fix NormalizePath("../../foo")Shinichiro Hamaji
2015-09-11[C++] Correct the implementation of $*Shinichiro Hamaji
2015-08-25[C++] Fix newlines in $(info/warning/error)Dan Willemsen
Change-Id: Ia20a1ef563a6871ed843b9388fe27e87b8bd7020
2015-08-11[C++] Improve NormalizePathShinichiro Hamaji
So now NormalizePath("../foo") will be "../foo" and "/../foo" will be "/foo".
2015-08-06[C++] Re-run commands only when certain directories are updatedShinichiro Hamaji
2015-08-04[C++] Re-generate ninja file when a file is added/removedShinichiro Hamaji
With this change, we store the results of file list related commands in .kati_stamp. If one of them has been changed, we re-generate ninja file. Currently, this check is slow. We need to check the timestamp of directories first like what we are doing for $(wildcard).
2015-07-05[C++] Fix err_semicolon_in_output.mkShinichiro Hamaji
2015-07-03[C++] Remove STRING_PIECE macroShinichiro Hamaji
2015-07-01[C++] Introduce FindEmulator to speed up find commandShinichiro Hamaji
2015-06-29[C++] Introduce SymbolShinichiro Hamaji
2015-06-29Fix $(dir /foo) for both C++ and GoShinichiro Hamaji
2015-06-29[C++] Fix abspathShinichiro Hamaji
2015-06-29Trim leading ./ when kati includes a fileShinichiro Hamaji
2015-06-26[C++] Fix backslash_before_empty_line.mkShinichiro Hamaji
2015-06-25[C++] Fix multiline_recipe.mkShinichiro Hamaji
2015-06-25[C++] Fix NoLineBreakShinichiro Hamaji
2015-06-25go gettable for github.com/google/katiFumitoshi Ukai
2015-06-23Add Apache license header to recently added filesShinichiro Hamaji
2015-06-22[C++] Improve handling of linebreaks and backslashesShinichiro Hamaji
2015-06-22[C++] Parse all kinds of rulesShinichiro Hamaji
2015-06-19[C++] Refactor pattern functions in strutilShinichiro Hamaji
2015-06-19[C++] Fix assign_in_parens.mkShinichiro Hamaji
2015-06-19[C++] Introduce FindOutsideParenShinichiro Hamaji
2015-06-18[C++] Introduce ScopedTerminatorShinichiro Hamaji
2015-06-18[C++] Implement abspathShinichiro Hamaji
2015-06-18[C++] Implement dir, notdir, suffix, and basenameShinichiro Hamaji
2015-06-18[C++] Implement sortShinichiro Hamaji
2015-06-18[C++] Implement findstring, filter, and filter-outShinichiro Hamaji
2015-06-18[C++] Replace StripXXXSpaces by TrimXXXSpaceShinichiro Hamaji
2015-06-18[C++] Implement defineShinichiro Hamaji
2015-06-18[C++] Fix WordWriter::MaybeAddWhitespaceShinichiro Hamaji
2015-06-18[C++] Implement subst and stripShinichiro Hamaji
2015-06-18[C++] Fix patsubst.mkShinichiro Hamaji
2015-06-18[C++] Fix suffix_subst_pat.mkShinichiro Hamaji