how is the parser's selection working?

Timothy Hunter tjhunter.dev at gmail.com
Fri Jul 3 08:09:26 BST 2009


Please disregard the previous email, kdevelop crashed and picked up all the 
missing headers afterwards. Sorry, no backtrace this time.

Best regards

Tim Hunter

On Thursday 02 July 2009 23:16:22 you wrote:
> Hello,
> when I use the current revision of Kdevelop with the eigen library, the
> parser does not seem to pick the headers of the form:
> #include <Eigen/Array>
> i.e. I do not get the nice syntax highlighting when I open such a file and
> the autocompletion does not suggest any content from the included files. Is
> there a way to force the parser to process these files?
>
> Thanks!
> Kdevelop's greatness hit me again today while working with a simple text
> editor. I am so used to type only a few letters and expect the
> autocompletion to work the way it should that I did not notice I was only
> writing the start of the variable names...
>
> For information, the content of the file above is:
>
>
> #ifndef EIGEN_ARRAY_MODULE_H
> #define EIGEN_ARRAY_MODULE_H
>
> #include "Core"
>
> #include "src/Core/util/DisableMSVCWarnings.h"
>
> namespace Eigen {
>
> /** \defgroup Array_Module Array module
>   * This module provides several handy features to manipulate matrices as
> simple array of values.
>   * In addition to listed classes, it defines various methods of the Cwise
> interface
>   * (accessible from MatrixBase::cwise()), including:
>   *  - matrix-scalar sum,
>   *  - coeff-wise comparison operators,
>   *  - sin, cos, sqrt, pow, exp, log, square, cube, inverse (reciprocal).
>   *
>   * This module also provides various MatrixBase methods, including:
>   *  - boolean reductions: \ref MatrixBase::all() "all", \ref
> MatrixBase::any() "any", \ref MatrixBase::count() "count",
>   *  - \ref MatrixBase::Random() "random matrix initialization",
>   *  - a \ref MatrixBase::select() "select" function mimicking the
> trivariate ?: operator,
>   *  - \ref MatrixBase::colwise() "column-wise" and \ref
> MatrixBase::rowwise() "row-wise" reductions,
>   *  - \ref MatrixBase::reverse() "matrix reverse",
>   *  - \ref MatrixBase::lpNorm() "generic matrix norm".
>   *
>   * \code
>   * #include <Eigen/Array>
>   * \endcode
>   */
>
> #include "src/Array/CwiseOperators.h"
> #include "src/Array/Functors.h"
> #include "src/Array/BooleanRedux.h"
> #include "src/Array/Select.h"
> #include "src/Array/VectorwiseOp.h"
> #include "src/Array/Random.h"
> #include "src/Array/Norms.h"
> #include "src/Array/Replicate.h"
> #include "src/Array/Reverse.h"
>
> } // namespace Eigen
>
> #include "src/Core/util/EnableMSVCWarnings.h"
>
> #endif // EIGEN_ARRAY_MODULE_H





More information about the KDevelop mailing list