2

Sometimes, after some hour of coding, in which I've certainly mashed TAB, I find out some file containing #include <bits/stdc++.h> (which I don't want to use), which means that some TAB-completion triggered that.

Since I discover this after a long time coding (typically when qualifying the change) I don't know which completion trigger that. Any idea which could it be? Furthermore, can I kind of "blacklist" it?

Enlico
  • 23,259
  • 6
  • 48
  • 102
  • I've been using YCM for a long time, and I'm pretty sure this isn't something that's enabled by default. Are you sure you didn't add this at some point? – cigien Jan 21 '21 at 15:34
  • @cigien, if you mean adding the header, no, I didn't even know of its existence, not to mention that what I describe has not happened just once, but several times, as many as I needed to start checking the headers before submitting a change to make sure that header has not sneaked in. – Enlico Jan 21 '21 at 15:36
  • Are there any headers that you want to be auto completed? I can't remember how to off the top of my head, but there's definitely a way to disable all of them. There's probably a way to be more fine-grained of course. – cigien Jan 21 '21 at 15:40
  • @cigien, I'd say I want all of them except _that_ one. – Enlico Jan 21 '21 at 15:41

1 Answers1

0

I've been lucky today while working near the top of a source file. The header <bits/stdc++.h> gets included when I Tab-complete std::size_t.

Enlico
  • 23,259
  • 6
  • 48
  • 102