- Use
IWYU pragma: keep
to force IWYU to keep any#include
directive that would be discarded under its normal policies. - Use
IWYU pragma: always_keep
to force IWYU to keep a header in all includers, whether they contribute any used symbols or not. - Use
IWYU pragma: export
to tell IWYU that one header serves as the provider for all symbols in another, included header (e.g. facade headers). UseIWYU pragma: begin_exports/end_exports
for a whole group of included headers. - Use
IWYU pragma: no_include
to tell IWYU that the file in which the pragma
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// ================================================================== VSCode editor | |
"editor.formatOnSave": true, | |
"editor.fontSize": 16, | |
"editor.rulers": [ | |
120 | |
], | |
"editor.inlayHints.enabled": "off", | |
"editor.inlineSuggest.enabled": true, | |
"editor.guides.bracketPairs": "active", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup: | |
1) Fresh new install of msys2-x86_64-20220503.exe. | |
2) Launch _specifically_ the "MSYS2 MinGW x64" terminal (not the one it suggests). | |
3) Run pacman -S mingw-w64-x86_64-{make,cmake,gcc,clang,gdb} and say yes at the prompt. | |
4) Add `C:\msys64\mingw64\bin` to windows's PATH. | |
*** If you intend to continue with the usage section, you have to restart the "MSYS2 MinGW x64" terminal | |
for your changes to the PATH environment variable to refresh. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tok_split_gte=false | |
utf8_byte=false | |
utf8_force=false | |
indent_cmt_with_tabs=false | |
indent_align_string=false | |
indent_braces=false | |
indent_braces_no_func=false | |
indent_braces_no_class=false | |
indent_braces_no_struct=false | |
indent_brace_parent=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-falign-functions -falign-jumps | |
-falign-labels -falign-loops | |
-fcaller-saves | |
-fcode-hoisting | |
-fcrossjumping | |
-fcse-follow-jumps -fcse-skip-blocks | |
-fdelete-null-pointer-checks | |
-fdevirtualize -fdevirtualize-speculatively | |
-fexpensive-optimizations | |
-ffinite-loops |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
GVERSION="1.17" | |
GFILE="go$GVERSION.linux-amd64.tar.gz" | |
GOPATH="$HOME/projects/go" | |
GOROOT="/usr/local/go" | |
if [ -d $GOROOT ]; then | |
echo "Installation directories already exist $GOROOT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main :- | |
natural(N), | |
N < 1000, | |
(multipleOf(3, N) ; multipleOf(5, N)), | |
converge(sum(N), Answer), | |
printLine(Answer). | |
------------------------- vs -------------------------- | |
solution(N) :- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"golang.org/x/sys/windows/registry" | |
"io" | |
"log" | |
) | |
func main() { | |
key, err := registry.OpenKey(registry.CURRENT_USER, "Test", registry.ALL_ACCESS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/jinzhu/now" | |
"log" | |
"os" | |
"strconv" | |
"time" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DEFER_H | |
#define DEFER_H | |
struct guard_metadata { | |
int labels[32]; | |
size_t label_count; | |
bool run_mode; | |
int at; | |
}; |
NewerOlder