This file is indexed.

/usr/include/srchiliteqt/HighlightStateData.h is in libsource-highlight-qt4-dev 0.2.2-0ubuntu7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 *  Copyright (C) 2008-2010  Lorenzo Bettini, http://www.lorenzobettini.it
 *  License: See COPYING file that comes with this distribution
 */

#ifndef HIGHLIGHTSTATEDATA_H_
#define HIGHLIGHTSTATEDATA_H_

#include <srchilite/sourcehighlighter.h>

namespace srchiliteqt {

/**
 * Utility class to deal with current highlighting state (and stack of states)
 */
struct HighlightStateData {
    /// the current state for the SourceHighlighter object
    srchilite::HighlightStatePtr currentState;

    /// the current stack for the SourceHighlighter object
    srchilite::HighlightStateStackPtr stateStack;

    HighlightStateData() {
    }

    /**
     * Performs a deep copy of the passed object (by duplicating the stack)
     * @param data
     */
    HighlightStateData(const HighlightStateData& data) :
                currentState(data.currentState),
                stateStack(srchilite::HighlightStateStackPtr(
                        new srchilite::HighlightStateStack(*(data.stateStack)))) {
    }

    HighlightStateData(srchilite::HighlightStatePtr currentState_,
            srchilite::HighlightStateStackPtr stateStack_) :
        currentState(currentState_), stateStack(stateStack_) {
    }

    /**
     * Performs a deep copy of the passed object (by duplicating the stack)
     */
    void copyFrom(const HighlightStateData& data) {
        currentState = data.currentState;
        stateStack = srchilite::HighlightStateStackPtr(
                new srchilite::HighlightStateStack(*(data.stateStack)));
    }
};

} // namespace srchiliteqt

#endif /* HIGHLIGHTSTATEDATA_H_ */