Skip to content
#

C++

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 720 public repositories matching this topic...

ram-bv
ram-bv commented Apr 12, 2020

Stefan Behnel wrote:

No. "@cython.cfunc" declares a function or method as a pure C function,
without a Python interface to it, and for methods, it only applies to
extension types and not regular Python classes.

It's interesting that Cython allowed you to set it on the "__iter__" method
which cannot, in fact, be a C method because it's one of Python's special
methods. We s

PatrikValkovic
PatrikValkovic commented Feb 28, 2020

The Khronos reference page contains description of parameters and description of the behavior for every function. Wouldn't it be possible to add doc comments for the functions, so IDE can show it? I understand the function description is a bit cumbersome, as one description is usually related to multiple functions with similar functionality, however parameters description would help a lot.
I am c

gyorb
gyorb commented Apr 23, 2020

Why will be the license changed?

As you know the source code is right now licensed under the lesser known
University of Illinois/NCSA Open Source License (NCSA).

In the last year the LLVM project including Clang and Clang-tidy went through a re-licensing process. The license from NCSA license was changed to "Apache 2.0 with LLVM Exception".
You can read more about the change [here](http

Ram-Z
Ram-Z commented Dec 13, 2019

Currently when choosing any of the other output formats it's not possible to get the text report printed to stdout or even a file.

I've tried the following, but neither work.

$ gcovr --sonarqube coverage.xml --output
usage: gcovr [options] [search_paths...]
gcovr: error: argument -o/--output: expected one argument
$ gcovr --sonarqube coverage.xml --output -
(WARNING) --output='-' op
thoughton
thoughton commented Oct 13, 2018

Hi,

It's possible that I'm just misunderstanding the documentation here, but in the docs it says that using the --test flag on the build command wil make cget "try to run the check target" after building.

Does this mean that it will try to execute the resulting executable that is generated from building the check target? If so, this does not seem to happen.

Or am I misunderstand

pilchat
pilchat commented Jun 20, 2018

Hi,

I'm trying to use the RQ kernel. First of all, in its help file I don't understand if I should put alpha or log_alpha as an input parameter. If the latter, is the logarithm natural or base 10?

Second of all, I checked R&W, and their formula 4.19 is not exactly the same as the one in george. Is it an issue, or are they mathematically equivalent?

Thanks in advance

Cheers

jj-tetraquark
jj-tetraquark commented May 7, 2017

In the README it states that in your .clang file you want to point to a project specific compilation database you need to specify it like so:

compilation_database = "<path to compilation_database>"

Actually you need to specify to the directory that contains it, rather than to the database itself.
i.e. if the file sits at catkin_ws/build/compile_commands.json your .clang file should s

eldiener
eldiener commented Mar 12, 2020

The documentation for the 'cflags' feature in the latest Boost Build docs says:

"For cflags that is both the C and C++ compilers, for cxxflags that is the C++ compiler"

but this is not reflected in the common.handle-options rule, which has 'cflags' being set for the toolset's 'compile.c' rule rather than for the toolset's 'compile' rule, while the 'compileflags' feature, which is no longer d

winsonrich
winsonrich commented Oct 25, 2018

Write a class method recursivePrint(int count) of a class Recursion which prints "z y x w "
on the first line, "z y x " on the second line, ..., "z " on the fourth line by recursion if count is 4. If
count is n (n <= 26), n lines should be printed and the first line contains "z y x ...? ", where "?" is the
nth letter starting from "z". Note that there is a space after each letter.
Test it usin

luwso
luwso commented Feb 13, 2020

Citing the doc: "The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils."
source: https://docs.python.org/3/distutils/setupscript.html

For the Python community the setup.py file is a standard to know how to set up the environment just out of the box. Instead of running the right scripts in the order it would be better to have one kn

phcerdan
phcerdan commented Dec 8, 2017

Hi, giving a try to deoplete from YCM.
Can we have an example on how to work with the compile_commands.json. It says no config required... but where should the json be? It is generated by cmake in the build folder, #14 but it should be in the root of the project right? That should be noticed to the user.

Also, for a deoplete noob, do I need something else to say to deoplete? Something lik

ombre5733
ombre5733 commented Apr 15, 2017

Is there a way to loop over the types defined inside a template? I'm currently testing the library with the following code:

namespace A {
struct B {
  struct D { bool d; };
};
struct D {};

template <typename T1, typename T2>
struct T {
  struct E { int e; };
};

T<B::D, bool> fun();
}

Starting with namespace A, I'm able to go to the

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia
You can’t perform that action at this time.