I hereby claim:
- I am bstaletic on github.
- I am bstaletic (https://keybase.io/bstaletic) on keybase.
- I have a public key whose fingerprint is 04AC 1C5B 6450 A401 955F 21AD CCED F55E EC02 7ACD
To claim this, I am signing this object:
diff --git a/cpp/ycm/Candidate.cpp b/cpp/ycm/Candidate.cpp | |
index d204336..2bc34e0 100644 | |
--- a/cpp/ycm/Candidate.cpp | |
+++ b/cpp/ycm/Candidate.cpp | |
@@ -29,18 +29,18 @@ std::string GetWordBoundaryChars( const std::string &text ) { | |
for ( size_t i = 0; i < text.size(); ++i ) { | |
bool is_first_char_but_not_punctuation = i == 0 && | |
- !IsPunctuation( text[ i ] ); | |
+ !ispunct( text[ i ] ); |
I hereby claim:
To claim this, I am signing this object:
=============================== Our CMake ========================================================================== | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/0 410 ns 410 ns 1713696 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/16/0 4273 ns 4273 ns 159890 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/256/0 102100 ns 102101 ns 6808 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4096/0 2693267 ns 2693271 ns 224 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/65536/0 172801644 ns 172800973 ns 8 | |
IdentifierCompleterFixture_BigO 0.04 N^2 0.04 N^2 | |
IdentifierCompleterFixture_RMS 3 % 3 % | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/10 410 ns 410 ns 1 |
#include <regex> // Consider boost::regex - it's much faster | |
static const std::vector<std::string> INCLUDE_FLAGS {"-isystem", | |
"-I", | |
"-iquote", | |
"-isysroot", | |
"--sysroot", | |
"-gcc-toolchain", | |
"-include-pch", | |
"-include", | |
"-iframework", |
#!/usr/bin/env python | |
# | |
#===- run-clang-tidy.py - Parallel clang-tidy runner ---------*- python -*--===# | |
# | |
# The LLVM Compiler Infrastructure | |
# | |
# This file is distributed under the University of Illinois Open Source | |
# License. See LICENSE.TXT for details. | |
# | |
#===------------------------------------------------------------------------===# |
#ifndef BENCHMARK_MUTEX_H_ | |
#define BENCHMARK_MUTEX_H_ | |
#include <mutex> | |
// Enable thread safety attributes only with clang. | |
// The attributes can be safely erased when compiling with other compilers. | |
#if defined(__clang__) && (!defined(SWIG)) | |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) | |
#else |
#ifndef YCM_MUTEX_H | |
#define YCM_MUTEX_H | |
#include <mutex> | |
// Enable thread safety attributes only with clang. | |
// The attributes can be safely erased when compiling with other compilers. | |
#if defined(__clang__) && (!defined(SWIG)) | |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) | |
#else |
" Completing functions using UltiSnips | |
function! ycm#onCompleteDone() abort | |
let l:info = v:completed_item.info | |
let l:startIdx = stridx(l:info,'(') | |
let l:endIdx = strridx(l:info,')') | |
"echo 'abbr = ' . string(v:completed_item) | |
if l:endIdx - l:startIdx > 1 | |
let l:argsStr = strpart(l:info, l:startIdx+1, l:endIdx - l:startIdx -1) | |
"let argsList = split(argsStr, ",") |
--------------------------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
--------------------------------------------------------------------------------------------------------------------- | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1/0 943 ns 943 ns 742850 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/16/0 4873 ns 4873 ns 143370 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/256/0 101857 ns 101856 ns 6715 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4096/0 2149956 ns 2149949 ns 340 | |
IdentifierCompleterFixture/CandidatesWithCommonPrefix/65536/0 76030737 ns 76030141 ns 10 | |
IdentifierCompleterFixture_BigO 72. |