Skip to main content

All Questions

0 votes
1 answer
133 views

Consider this small function: def test(): x = 1 x = 2 x = 3 return x + 1 Apparently, the first two assignments to x have no effect here and can be removed. Yet surprisingly, pylint/...
Eugene Yarmash's user avatar
2 votes
4 answers
396 views

#include <stdio.h> #include <stdlib.h> typedef struct { int a; } tempStruct1; typedef struct { int b; } tempStruct2; typedef struct { tempStruct1 *temp1; tempStruct2 *...
IQUnderflow's user avatar
0 votes
0 answers
46 views

First a bit of context. Consider the code: void foo(double* b){ int a = 100; a = 101; b[1] += b[a]; } I have a visitor, that has VisitArraySubscriptExpr(ASE), where I perform ...
tapochki's user avatar
0 votes
1 answer
86 views

When I make a component that relies on something like the currently chosen language for example, or maybe a special query function to fetch data, and I provide either of these things via a ...
ADJenks's user avatar
  • 3,461
0 votes
1 answer
273 views

Is clang-tidy '-checks=clang-analyzer-*' a drop in replacement for scan-build and clang-check -analyze? If I'm using the former, is there any need for using latters again? Previously there are two ...
Sourav Kannantha B's user avatar
10 votes
3 answers
861 views

I have a following embedded system optimization case (simplified). int main() { while (1) { // Do something if (unrecoverable_error) { __breakpoint(); while(1); } } } ...
qdot's user avatar
  • 6,555
1 vote
1 answer
180 views

Here's the code: <?php declare(strict_types=1); /** * @param array{key?: string} $options */ function hello($options) { var_dump($options); } hello([ 'WRONG_KEY' => '...', ]); I ...
Limon Monte's user avatar
  • 54.8k
0 votes
1 answer
28 views

Are there any ClangFormat styles (or other tools) which will handle excessive newlines? With two or more newlines after the function parameter parentheses, as in the example below, none of the styles ...
user2023370's user avatar
  • 11.3k

15 30 50 per page
1
2 3 4 5
182